package com.hrm.dao;

import com.hrm.model.HrmUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface HrmUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HrmUser record);

    int insertSelective(HrmUser record);

    HrmUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HrmUser record);

    int updateByPrimaryKey(HrmUser record);

    HrmUser checkLogin(@Param("username")String username,@Param("password")String password);

    Integer updatePsw(@Param("OldPsw")String OldPsw,@Param("NewPsw")String NewPsw,@Param("id")Integer id);


}